package com.liang.volatiledemo;

public class Boy extends Thread {
    @Override
    public void run() {
        try {
            sleep(1000);
            Money.money = Money.money-10000;
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
